package com.lam.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lam
 * @since 2019-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Student对象", description = "")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学号")
    @TableId(value = "stu_no", type = IdType.AUTO)
    private Long stuNo;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "宿舍id")
    private Long dorId;

    @ApiModelProperty(value = "学生姓名")
    private String stuName;

    @ApiModelProperty(value = "学生性别 1男 2女" )
    private Integer stuSex;

    @ApiModelProperty(value = "学生年龄")
    private Integer stuAge;

    @ApiModelProperty(value = "学生专业")
    private String stuMajor;
    @ApiModelProperty(value = "学生年级")
    private String stuGrade;
    @ApiModelProperty(value = "学生班级")
    private String stuClass;
    @ApiModelProperty(value = "学生联系方式")
    private String stuPhone;

    @ApiModelProperty(value = "用户状态：0已删除; 1未删除")
    @TableLogic
    private Integer status;

}
